package com.example.mybaties.testone.domain;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Student {

    private Logger logger = LogManager.getLogger(this.getClass());

    private String name;

    private int score;

    public Student() {
        logger.debug("构造函数......Student()");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        logger.debug("Student..........setName()......");
        this.name = name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                ", name='" + name + '\'' +
                ", score=" + score +
                '}';
    }
}
